﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using b7.Models;

namespace b7.Controllers
{
    public class AdminshopController : Controller
    {
        private b7Models db = new b7Models();
        // GET: /Adminshop/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Dssanpham()
        {
            var query = from d in db.Sanphams where d.Member.UserName.Contains(User.Identity.Name) select d;
            return View(query);
        }

    }
}
